<!DOCTYPE html>
<html>
<head>
    <title>应用添加</title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp1" v-cloak>
    <div>
        <div class="grid-btn">
        	<div class="form-group">
				<div class="col-sm-2 control-label">应用名称</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="appinfo.appname" placeholder="应用名称"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">应用类别</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" style="cursor:pointer;" v-model="appinfo.appclassName" @click="openTree" readonly="readonly" placeholder="应用类别"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">回调地址</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="appinfo.callbackurl" placeholder="回调地址"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">应用系统根目录</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="appinfo.approoturl" placeholder="应用系统根目录"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">后台管理入口地址</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="appinfo.appconfigurl" placeholder="后台管理入口地址"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">访问入口名称</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="appinfo.appentryname" placeholder="访问入口名称"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">应用状态</div>
				<div class="col-sm-10">
					<select class="form-control select2" v-model="appinfo.appstatus" style="width: 100%;">
						<option value="1">新申请</option>
						<option value="2">已批准</option>
						<option value="3">已否决</option>
						<option value="4">已上线</option>
						<option value="5">已下线</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">排序号</div>
				<div class="col-sm-10">
					<input type="number" class="form-control" v-model="appinfo.ordernum" placeholder="0"/>
				</div>
			</div>
            <a class="btn btn-primary" @click="saveOrUpdate"><i class="fa fa-plus"></i>&nbsp;保存</a>
        </div>
    </div>
</div>
<!-- 选择类别 -->
<div id="appclassLayer" style="display: none;padding:10px;">
	<ul id="appclassTree" class="ztree"></ul>
</div>
<script src="${request.contextPath}/statics/js/modules/sys/appinfoAdd.js?_${.now?long}"></script>
</body>
</html>